﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace homework5_3
{
    class Program
    {
        static void Main(string[] args)
        {
            double number=1;
            for (double i = 1; i < 100; i++)
            {
                number = number + number/(number+1);

            }
            Console.WriteLine(number);
            Console.ReadKey();
        }
    }
}
